$(function() {
	var image1 = localStorage.getItem("yulan_image1");
	var image2 = localStorage.getItem("yulan_image2");
	var image3 = localStorage.getItem("yulan_image3");
	var str = "";
	if(image1 !== "") {
		str += "<div class='swiper-slide'>" +
			"<a class='lunbotu1'>" +
			"<img style='width: 90%;' class='sw_img' src='" + image1 + "' alt=''>" +
			"</a>" +
			"</div>";
	}
	if(image2 !== "") {
		str += "<div class='swiper-slide'>" +
			"<a class='lunbotu1'>" +
			"<img style='width: 90%;' class='sw_img' src='" + image2 + "' alt=''>" +
			"</a>" +
			"</div>";
	}
	if(image3 !== "") {
		str += "<div class='swiper-slide'>" +
			"<a class='lunbotu1'>" +
			"<img style='width: 90%;' class='sw_img' src='" + image3 + "' alt=''>" +
			"</a>" +
			"</div>";
	}

	$('.swiper-wrapper').append(str);　　　　　　 //添加完以后就可以调用swiper了 哦了
	var mySwiper = new Swiper('.swiper-container', {
		// direction: 'vertical',
		loop: true,
		autoplay: 6000,
		// 如果需要分页器
		pagination: '.swiper-pagination',
	});
});